<template>
  <div class="admin-layout">
    <!-- 侧边栏 -->
    <Sidebar class="sidebar" />
    <!-- 出口 -->
    <div class="content">
      <router-view></router-view>
    </div>
  </div>
</template>

<script setup lang="ts">
import Sidebar from "./Sidebar.vue";
</script>

<style scoped lang="less">
.admin-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  .sidebar {
    width: 200px;
    height: 100%;
    flex-shrink: 0;
  }
  .content {
    flex: 1;
    height: 100%;
    overflow: hidden;
    background: #eff2fe;
    padding: 30px;
  }
}
</style>
